/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.sys.customerfeature.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import cn.knet.sp.ncrm.common.persistence.Page;
import cn.knet.sp.ncrm.common.service.CrudService;
import cn.knet.sp.ncrm.modules.sys.customerfeature.dao.CustomerFeatureDao;
import cn.knet.sp.ncrm.modules.sys.customerfeature.entity.CustomerFeature;

/**
 * 客户特点Service
 * @author zhangbin
 * @version 2015-08-25
 */
@Service
@Transactional(readOnly = true)
public class CustomerFeatureService extends CrudService<CustomerFeatureDao, CustomerFeature> {

	public CustomerFeature get(String id) {
		return super.get(id);
	}
	
	public List<CustomerFeature> findList(CustomerFeature customerFeature) {
		return super.findList(customerFeature);
	}
	
	public Page<CustomerFeature> findPage(Page<CustomerFeature> page, CustomerFeature customerFeature) {
		return super.findPage(page, customerFeature);
	}
	
	@Transactional(readOnly = false)
	public void save(CustomerFeature customerFeature) {
		super.save(customerFeature);
	}
	
	@Transactional(readOnly = false)
	public void delete(CustomerFeature customerFeature) {
		super.delete(customerFeature);
	}

	public int findDistinctCustomerFeature(CustomerFeature customerFeature) {
		return dao.findDistinctCustomerFeature(customerFeature);
	}

}